<form class="form-inline" action="<?=printUrl('Main','adminSubScore')?>" name="subScore" id="subScore">
<div style="width: 1000px;" class="table-responsive">
  <table border="1" cellspacing="0" class="table table-hover table-bordered table-condensed" style="width: 2200px;">
    <thead>
      <tr>
        <th class="bg-primary text-center" colspan="8">专营店基本信息</th>
        <th class="bg-primary text-center" colspan="17">费用使用管控表</th>
      </tr>
      <tr>
        <th class="bg-primary text-center">地区</th>
        <th class="bg-primary text-center">小区</th>
        <th class="bg-primary text-center">专营店</th>
        <th class="bg-primary text-center">所在城市</th>
        <th class="bg-primary text-center">专营店等级</th>
        <th class="bg-primary text-center">填写人职位</th>
        <th class="bg-primary text-center">填写人</th>
        <th class="bg-primary text-center">联系方式</th>

        <th class="bg-primary text-center">双月额度</th>
        <th class="bg-primary text-center">上双月结余金额</th>
        <th class="bg-primary text-center">可用额度</th>
        <th class="bg-primary text-center">广宣传播申请费用</th>
        <th class="bg-primary text-center">营销活动申请费用</th>
        <th class="bg-primary text-center">预算申请总费用</th>
        <th class="bg-primary text-center">广宣传播审核费用</th>
        <th class="bg-primary text-center">营销活动审核费用</th>
        <th class="bg-primary text-center">预算审核总费用</th>
        <th class="bg-primary text-center">广宣传播结算申请费用</th>
        <th class="bg-primary text-center">营销活动结算申请费用</th>
        <th class="bg-primary text-center">结算申请总费用</th>
        <th class="bg-primary text-center">广宣传播结算审核费</th>
        <th class="bg-primary text-center">广宣传播结算审核费用</th>
        <th class="bg-primary text-center">结算审核总费用</th>
        <th class="bg-primary text-center">可结算金额</th>
        <th class="bg-primary text-center">结余金额</th>
      </tr>
    </thead>
    <tbody>
      <?php
      foreach ($procList as $k => $v) {
      ?>
      <tr>
        <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['area'] : ''?></td>
        <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['spsarea'] : ''?></td>
        <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['storeName'] : ''?></td>
        <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['city'] : ''?></td>
        <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['level'] : ''?></td>
        <td class="text-center"><?=$v['userJob']?></td>
        <td class="text-center"><?=$v['userName']?></td>
        <td class="text-center"><?=$v['userContact']?></td>
        <td class="text-center"><?=(float)$v['fixedMoney']?></td>
        <td class="text-center"><?=(float)$v['preCarryMoney']?></td>
        <td class="text-center"><?=(float)$v['canUseMoney']?></td>
        <td class="text-center"><?=(float)$v['budgetApplyOnline']?></td>
        <td class="text-center"><?=(float)$v['budgetApplyOffline']?></td>
        <td class="text-center"><?=(float)$v['budgetApplyTotal']?></td>
        <td class="text-center"><?=(float)$v['budgetAuditOnline']?></td>
        <td class="text-center"><?=(float)$v['budgetAuditOffline']?></td>
        <td class="text-center"><?=(float)$v['budgetAuditTotal']?></td>
        <td class="text-center"><?=(float)$v['settleApplyOnline']?></td>
        <td class="text-center"><?=(float)$v['settleApplyOffline']?></td>
        <td class="text-center"><?=(float)$v['settleApplyTotal']?></td>
        <td class="text-center"><?=(float)$v['settleAuditOnline']?></td>
        <td class="text-center"><?=(float)$v['settleAuditOffline']?></td>
        <td class="text-center"><?=(float)$v['settleAuditTotal']?></td>
        <td class="text-center"><?=(float)$v['canSettleMoney']?></td>
        <td class="text-center"><?=(float)$v['carryMoneyTotal']?></td>
      </tr>
      <?php } ?>
      <?php
      $total = getArrayColumnTotal($procList,
          array('fixedMoney','preCarryMoney','canUseMoney','budgetApplyOnline','budgetApplyOffline','budgetApplyTotal','budgetAuditOnline','budgetAuditOffline','budgetAuditTotal','settleApplyOnline','settleApplyOffline','settleApplyTotal','settleAuditOnline',
              'settleAuditOffline','settleAuditTotal','canSettleMoney','carryMoneyTotal'),1);
      ?>
      <tr>
        <td class="text-center" colspan="2">全国</td>
        <td class="text-center" colspan="6">合计</td>
        <td class="text-center"><?=$total['fixedMoney']?></td>
        <td class="text-center"><?=$total['preCarryMoney']?></td>
        <td class="text-center"><?=$total['canUseMoney']?></td>
        <td class="text-center"><?=$total['budgetApplyOnline']?></td>
        <td class="text-center"><?=$total['budgetApplyOffline']?></td>
        <td class="text-center"><?=$total['budgetApplyTotal']?></td>
        <td class="text-center"><?=$total['budgetAuditOnline']?></td>
        <td class="text-center"><?=$total['budgetAuditOffline']?></td>
        <td class="text-center"><?=$total['budgetAuditTotal']?></td>
        <td class="text-center"><?=$total['settleApplyOnline']?></td>
        <td class="text-center"><?=$total['settleApplyOffline']?></td>
        <td class="text-center"><?=$total['settleApplyTotal']?></td>
        <td class="text-center"><?=$total['settleAuditOnline']?></td>
        <td class="text-center"><?=$total['settleAuditOffline']?></td>
        <td class="text-center"><?=$total['settleAuditTotal']?></td>
        <td class="text-center"><?=$total['canSettleMoney']?></td>
        <td class="text-center"><?=$total['carryMoneyTotal']?></td>
      </tr>
    </tbody>
  </table>
</div>
</form>